<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>


<title>POS收单运营管理平台</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link href="<s:url value="/css/common.css"/>" type="text/css"
	rel="stylesheet" />

<script type="text/javascript"
	src="<s:url value="/js/jquery-1.9.1.js" />"></script>
<script type="text/javascript"
	src="<s:url value="/js/jquery.blockUI.js" />"></script>
<script type="text/javascript"
	src="<s:url value="/js/jquery.validate.min.js" />"></script>
<script type="text/javascript"
	src="<s:url value="/js/pwms.validate.js?v13" />"></script>
<script language="javascript" type="text/javascript"
	src="<s:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
<script type='text/javascript' src='<s:url value="/dwr/engine.js"/>'></script>
<script type='text/javascript'
	src='<s:url value="/dwr/interface/MccQuery.js"/>'></script>
<script type='text/javascript' src='<s:url value="/js/querySon.js"/>'></script>
<script type='text/javascript' src='<s:url value="/js/YLlightbox.js"/>'></script>
<script type='text/javascript' src='<s:url value="/js/ajaxfileupload.js"/>'></script>
<style type="text/css">
.error {
	color: red;
}
</style>

</head>

<body>
			<div id="caption">
			<table width="100%" class="tb">
			<tr class="tb-line">
				<td class="tb-td" colspan="4">
					<div class="tb-h2">POS收单运营管理平台</div>
				</td>
			</tr>
			<tr class="tb-line bg-gray">
				<td class="tb-td" colspan="4"><div class="tb-h3" id="title">微信扫码认证</div></td>
			</tr>
			</table>
			</div>
			<!-- basic -->

		<!-- 扫码信息模块 -->
		<div id="public">
		<s:form id="scanCodeAudit" action="" method="post" theme="simple">
			<table width="100%" class="tb">
				<tr class="tb-line">
					<td align="right" class="tb-td" style="width: 110px;">
						<div class="tb-h4">商户号</div>
					</td>
					<td class="tb-td" style="width: 480px;">
						<s:property value="scanCodeAudit.mchtCd"/>
						<s:hidden name="scanCodeAudit.mchtCd"></s:hidden>
					</td>
					<td align="right" class="tb-td" style="width:110px;">
				        	<div class="tb-h4" id="title">商户名称：</div>
			            </td>
			            <td class="tb-td" id="status">
                			<s:property value="scanCodeAudit.mchtCd"/>
						</td>
				</tr>	
				<tr class="tb-line">
					<td align="right" class="tb-td" style="width: 110px;">
						<div class="tb-h4">联系人微信号:</div>
					</td>
					<td class="tb-td" style="width: 480px;">
						<s:property value="scanCodeAudit.wxId"/>
					</td>
					<td align="right" class="tb-td" style="width:110px;">
				        	<div class="tb-h4" id="title">微信子商户号：</div>
			            </td>
			            <td class="tb-td" id="status" style="width: 480px;">
                			<s:property value="scanCodeAudit.subid"/>
						</td>
				</tr>
				<tr class="tb-line">
					<td align="right" class="tb-td" style="width: 110px;">
						<div class="tb-h4">联系人微信姓名:</div>
					</td>
					<td class="tb-td" style="width: 480px;">
						<s:property value="scanCodeAudit.wxName"/>
					</td>
					<td align="right" class="tb-td" style="width:110px;">
				        	<div class="tb-h4" id="title">是否认证：</div>
			            </td>
			            <td class="tb-td" id="status">
                			<s:select name="scanCodeAudit.symbol" list="#{'1':'认证成功','0':'认证失败'}" cssClass="queryWidth"/> 
						</td>
				</tr>
				<tr class="tb-line">
					<td align="right" class="tb-td" style="width: 110px;">
						<div class="tb-h4">认证意见:</div>
					</td>
					<td class="tb-td" style="width: 480px;" colspan="3">
						<s:textarea id="auditInfo" name="scanCodeAudit.auditInfo" rows="5" cols="100"></s:textarea>
						<font color="red" id="rt">*</font>
					</td>					
				</tr>			
			</table>
			
			
			
			<table width="100%" border="0" cellspacing="0" class="table">
				<tr class="tb-line">
					<td colspan="4" align="center"><span style="color: red"><s:actionerror /></span>
						<span style="color: red;"><s:actionmessage /></span> <span
						style="color: red;"><s:fielderror cssClass="fieldError" /></span>
						<span id="otherError"></span></td>
				</tr>
				<tr class="tb-line">
					<td class="tb-td line-submit" align="center" colspan="4">
					<label class="tb-input-submit">
						<input type="button" id="btnCode" value="保存" />
					</label>
					<label class="tb-input-submit"> 
					<input type="reset" value="重置" id="resetCode" class="reset"/>
					</label>
					<label class="tb-input-submit"> 
						<input type="button" id="back" value="返回" onclick="history.back()"/>
					</label>
					</td>
				</tr>
			</table>
		</s:form>
		</div>	
	<s:if test="msg!=null">
	<script type="text/javascript">
    alert("${msg}");
	</script>
</s:if>
</body>

<script type="text/javascript">
$(function(){
	$('#btnCode').click(function(){
		var adi = $('#auditInfo').val().trim();
		if(adi==''){
			$('#rt').text('认证意见不能为空');
			return 
		}
		$("#scanCodeAudit").attr("action","<%=basePath%>/scanCodeAudit/auditData.ct");
		$("#scanCodeAudit").submit();
		$("#btnCode").attr("disabled",true);
		$("#resetCode").attr("disabled",true);
		$("#back").attr("disabled",true);
	});
});
</script>

</html>
